<?php

class Player_model extends CI_Model {

    public function __construct() {
        parent::__construct();
    }
    
    public function login($login) {
        $this->db->where('username', $login->username);
        $this->db->where('password', md5($login->password));
        return $this->db->get('player')->row();
        
    }

}

?>
